Optimal. Leaf size=13 \[ \frac {\tanh ^{-1}(a x)^2}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {6095}
\begin {gather*} \frac {\tanh ^{-1}(a x)^2}{2 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6095
Rubi steps
\begin {align*} \int \frac {\tanh ^{-1}(a x)}{1-a^2 x^2} \, dx &=\frac {\tanh ^{-1}(a x)^2}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 13, normalized size = 1.00 \begin {gather*} \frac {\tanh ^{-1}(a x)^2}{2 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 12, normalized size = 0.92
method | result | size |
derivativedivides | \(\frac {\arctanh \left (a x \right )^{2}}{2 a}\) | \(12\) |
default | \(\frac {\arctanh \left (a x \right )^{2}}{2 a}\) | \(12\) |
risch | \(\frac {\ln \left (a x +1\right )^{2}}{8 a}-\frac {\ln \left (-a x +1\right ) \ln \left (a x +1\right )}{4 a}+\frac {\ln \left (-a x +1\right )^{2}}{8 a}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 65 vs.
\(2 (11) = 22\).
time = 0.26, size = 65, normalized size = 5.00 \begin {gather*} \frac {1}{2} \, {\left (\frac {\log \left (a x + 1\right )}{a} - \frac {\log \left (a x - 1\right )}{a}\right )} \operatorname {artanh}\left (a x\right ) - \frac {\log \left (a x + 1\right )^{2} - 2 \, \log \left (a x + 1\right ) \log \left (a x - 1\right ) + \log \left (a x - 1\right )^{2}}{8 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 22, normalized size = 1.69 \begin {gather*} \frac {\log \left (-\frac {a x + 1}{a x - 1}\right )^{2}}{8 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.52, size = 10, normalized size = 0.77 \begin {gather*} \begin {cases} \frac {\operatorname {atanh}^{2}{\left (a x \right )}}{2 a} & \text {for}\: a \neq 0 \\0 & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 22, normalized size = 1.69 \begin {gather*} \frac {\log \left (-\frac {a x + 1}{a x - 1}\right )^{2}}{8 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.87, size = 23, normalized size = 1.77 \begin {gather*} \frac {{\left (\ln \left (a\,x+1\right )-\ln \left (1-a\,x\right )\right )}^2}{8\,a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________